package com.codeZ.ObserverPattern.instance;

/**
 * 短信观察者具体实现类
 *
 * @author codeZhang
 * @Date 2024/8/26 10:51
 */
public class MessageEventListenerObserver implements EventListenerObserver {
    @Override
    public void doEvent(LotteryResult result) {
        System.out.println("发送短信通知用户ID为: " + result.getUId() +
                ",您的摇号结果如下: " + result.getMsg());
    }
}
